package com.hmy.finance.dal.mapper.receipt;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmy.finance.dal.dos.receipt.ReceiptOffsetBillInfoDo;
import com.hmy.finance.dal.dos.receipt.ReceiptOffsetBillPageQueryDo;
import com.hmy.finance.dal.po.receipt.ReceiptOffsetBillPageQueryPo;
import com.hmy.finance.dal.po.receipt.ReceiptOffsetBillPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author loqel
 * @description 针对表【receipt_offset_bill(收款核销申请单)】的数据库操作Mapper
 * @createDate 2024-04-11 11:33:19
 * @Entity com.hmy.finance.dal.po.receipt.ReceiptOffsetBillPo
 */
public interface ReceiptOffsetBillMapper extends BaseMapper<ReceiptOffsetBillPo> {


    /**
     * 查询收款核销单数量-boss
     */
    Integer selectRecordsCountByReceiptOffsetParams(@Param("param") ReceiptOffsetBillPageQueryPo receiptOffsetBillPageQueryPo);

    /**
     * 分页查询收款核销单列表-boss
     */
    List<ReceiptOffsetBillPageQueryDo> selectRecordsByReceiptOffsetParams(@Param("param") ReceiptOffsetBillPageQueryPo receiptOffsetBillPageQueryPo);


    List<ReceiptOffsetBillInfoDo> selectAuditingRecordsByCustomerIdAndCustomerContactorIds(@Param("customerId") Long customerId, @Param("list") List<Long> customerContactorIds);


    /**
     * 根据核销单号查询核销单
     */
//    List<ReceiptOffsetBillPo> selectRecordsByReceiptOffsetNo(@Param("receiptOffsetBillNo") String receiptOffsetBillNo);

}




